package site.jlopen.domain.datasource;

import java.util.Date;
/**
* @ClassName: KusciaDatasource
* @Description: kuscia_datasource表：数据源管理
* @author 码农小鹿
* @date 2024-10-18
 */
public class KusciaDatasource {
	/**
	 * 主键
	 */
	private Long datasourceId;
	/**
	 * 创建人
	 */
	private Long datasourceUserId;
	/**
	 * 数据源类型
	 */
	private String datasourceType;
	/**
	 * 数据源名称
	 */
	private String datasourceName;
	/**
	 * 数据源编号
	 */
	private String datasourceCode;
	/**
	 * info与info_key字段二者填一个即可，info_key用于从KusciaConfigManager的加密后端中获取数据源的信息
	 */
	private String datasourceInfoKey;
	/**
	 * 默认true
	 */
	private Integer datasourceAccessDirectly;
	/**
	 * 创建时间
	 */
	private Date datasourceCreate;
	/**
	 * 修改时间
	 */
	private Date datasourceModified;

	public KusciaDatasource() {
		super();
	}
	
	public Long getDatasourceId() {
		return datasourceId;
	}
	public KusciaDatasource setDatasourceId(Long datasourceId) {
		this.datasourceId = datasourceId;
		return this;
	}
	
	public Long getDatasourceUserId() {
		return datasourceUserId;
	}
	public KusciaDatasource setDatasourceUserId(Long datasourceUserId) {
		this.datasourceUserId = datasourceUserId;
		return this;
	}
	
	public String getDatasourceType() {
		return datasourceType;
	}
	public KusciaDatasource setDatasourceType(String datasourceType) {
		this.datasourceType = datasourceType;
		return this;
	}
	
	public String getDatasourceName() {
		return datasourceName;
	}
	public KusciaDatasource setDatasourceName(String datasourceName) {
		this.datasourceName = datasourceName;
		return this;
	}
	
	public String getDatasourceCode() {
		return datasourceCode;
	}
	public KusciaDatasource setDatasourceCode(String datasourceCode) {
		this.datasourceCode = datasourceCode;
		return this;
	}
	
	public String getDatasourceInfoKey() {
		return datasourceInfoKey;
	}
	public KusciaDatasource setDatasourceInfoKey(String datasourceInfoKey) {
		this.datasourceInfoKey = datasourceInfoKey;
		return this;
	}
	
	public Integer getDatasourceAccessDirectly() {
		return datasourceAccessDirectly;
	}
	public KusciaDatasource setDatasourceAccessDirectly(Integer datasourceAccessDirectly) {
		this.datasourceAccessDirectly = datasourceAccessDirectly;
		return this;
	}
	
	public Date getDatasourceCreate() {
		return datasourceCreate;
	}
	public KusciaDatasource setDatasourceCreate(Date datasourceCreate) {
		this.datasourceCreate = datasourceCreate;
		return this;
	}
	
	public Date getDatasourceModified() {
		return datasourceModified;
	}
	public KusciaDatasource setDatasourceModified(Date datasourceModified) {
		this.datasourceModified = datasourceModified;
		return this;
	}
	
}